{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>模板设置</strong></li>
	</ol>
</div>
{include file="Store_Menu/top"}
<style>
	.thumbnail{ width:400px; height:200px; overflow:hidden; position:relative; cursor:pointer; display: table-cell; vertical-align:middle;}
	img{max-width:170px; max-height:170px; vertical-align:middle;}
	.button{padding-top: 250px;}
</style>
    	<div class="col-sm-12" style=" background-color: #FFFFFF;"> 		
		<div class="ibox-content">
		   行业分类:	
		    <a href="{:url('index',['pid'=>'0'])}" class="btn btn-primary btn-outline">全部</a>
		   {foreach name='dd' item='vo'}
		  
		   <a href="{:url('index',['pid'=>$vo.pid])}" class="btn btn-primary btn-outline">{$vo.title}</a>
		   
		   {/foreach}    
		  
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">	
		<div class="form-group">
		<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 设置</button>
		</div>		
		<div class="hr-line-dashed"></div>
            <div class="example-wrap" >
                <div class="example" >
                        	{volist name="list" id='ad'}
								<li class="list-unstyled pull-left"  style=" width: 250px; margin-left: 10px;">
									<div style="width:300px;text-align: center;" >
											<img src="{$ad.thumb}" style="width:300px; ">
											<br />
											{$ad.template_name}									
		<input class="items" type="radio" name="id" value="{$ad.id}" {if condition="$ad.id==$tid"} checked{/if}>
									</div>
									<div class="hr-line-dashed"></div>
								</li>
                        	{/volist}                
            <div style="text-align: right;">
                      {$list->render()}
                    </div>
               </div>
          </div>
          </form>	
        </div>
    </div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>	
	$(function() {
		$("#myForm").validate({
			rules: {
				id: "required"
			},
			messages: {
				id: ICON.error + "请选择模板"
			},
			submitHandler: function(form) {
				ajaxForm();
			}
		});
	});
	$("#li-bar-card").addClass("active");
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}